<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <div id="div"></div>
</body>
<script src="itcast.js"></script>
<script>
    var lis="啊啊啊,啊啊啊,啊啊啊,啊啊啊".split(",")
   var html="<ul>"+ F.map(lis,function(v){
        return "<li>"+v+"</li>";
    }).join("")+"</ul>";
    new F("#div")[0].innerHTML=html;
    new F("div ul li").each(function(){
        this.onmousemove=function(){
            this.style.background="red";
        }
    }).each(function(){
        this.onmouseout=function(){
            this.style.background=""
        }
    })
</script>
</html>